package com.tsy.server.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tsy.server.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("project_user")
@ApiModel(description = "项目人员关联实体")
public class ProjectUser extends BaseEntity {

    @ApiModelProperty(value = "项目ID", required = true)
    private Long projectId;

    @ApiModelProperty(value = "组织ID", required = true)
    private Long orgId;

    @ApiModelProperty(value = "用户ID", required = true)
    private Long userId;

    @ApiModelProperty(value = "人员项目名称", required = true)
    private String userProjectName;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户名", example = "test")
    private String username;

}